package com.pk.platform.business.flow.dao;

import java.util.List;
import java.util.Map;

import com.pk.platform.business.core.dao.IGenericDao;

public interface IFlowExecuteDao extends IGenericDao {

	public List<Map<String, Object>> queryFlowHistory(String tableName, String docId);
	
	public List<Map<String, Object>> queryFlowStatusHistory(String tableName, String docId, boolean includeReturn);
	
	public void delFlowHistory(String tableName, String docId);

	public void delFlowStatusHistory(String tableName, String docId);
	
	public int queryThroughCount(String tableName, String docId, String nodeId, int version);
	
	public Map<String, Object> queryCurrentStatus(String tableName, String docId, String nodeId, int version);
	
	public boolean hasSubmit(String tableName, String docId, String nodeId, int version);
	
	public List<Map<String, Object>> queryDistinctFlowStatusSubmit(String tableName, String docId);
	
}
